/**
 * Created by caosh on 2018/5/13 0013.
 */
var SeparateAccountsIndex = new Vue({
    el: '#separate_accounts-index',
    data: {
        payeeList: [],
        isShowBindAccount: false,
        isShowVerification: false
    },
    methods: {
        getPayeeList: function () {
            var _this = this;
            _this.setAjaxOptions('/getPayeeList', null, function (result, status, jqXHR) {
                if (result.retCode == 0) {
                    _this.payeeList = result.data;
                } else {
                    console.log(result.errMsg);
                }
            });
            _this.doAjax();
        },
        showBindAccount: function () {
            if (!this.isShowBindAccount) {
                this.isShowBindAccount = !this.isShowBindAccount;
            }

            Vue.useLayerForm();
        },
        showVerification: function () {
            if (!this.isShowVerification) {
                this.isShowVerification = !this.isShowVerification;
            }

            Vue.useLayerForm();
        }
    },
    mixins: [AjaxMixin, StatusMixin, UserMixin],
    mounted: function () {
        Vue.useLayerElement();
        this.getPayeeList();
    }
});